package com.ming.service;

import com.ming.common.Result;
import com.ming.domain.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ming.query.BookQuery;
import com.ming.query.CommentQuery;

/**
 *@Author:何元才
 *@Desc:
 *@data:2021-05-17 04:43
 */
public interface CommentService extends IService<Comment>{

    /**
     * 分页查询
     * @param query
     * @return
     */
    Result queryPage(CommentQuery query);

    /**
     * 新增
     * @param comment
     * @return
     */
    Result add(Comment comment);

    /**
     * 删除
     * @param commentId
     * @return
     */
    Result del(Integer commentId);
}
